package cn.school.basics.dao;

import cn.school.basics.vo.DormitoryBerthVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface DormitoryBerthDao extends BaseMapper<DormitoryBerthVO> {


    @Update("UPDATE t_dormitory_berth SET use_student_id = NULL WHERE id = #{berthId}")
    int updateUseStudentIdIsNull(@Param("berthId") Long berthId);
}
